<template>
  <div v-if="$route.meta.Frame != undefined && $route.meta.Frame == true">
    <RouterView></RouterView>
  </div>
  <div v-if="$route.meta.Frame == undefined || $route.meta.Frame == false">
    <el-container>
      <el-header>
        <el-row>
          <el-col :span="4">
            <img src="./assets/logo.jpg" alt="" width="200" height="50">
          </el-col>
          <el-col :span="16" style="text-align: center; line-height: 50px; font-size: 25px;">
            智能汽车服务平台
          </el-col>
          <el-col :span="4">
            <el-dropdown>
              <span class="el-dropdown-link">
                萧炎

                <el-icon color="black">
                  <CaretBottom />
                </el-icon>


              </span>
              <template #dropdown>
                <el-dropdown-menu>
                  <el-dropdown-item>个人中心</el-dropdown-item>
                  <el-dropdown-item>我的账号</el-dropdown-item>
                  <el-dropdown-item>关于我们</el-dropdown-item>
                  <el-dropdown-item divided>退出登录</el-dropdown-item>
                </el-dropdown-menu>
              </template>
            </el-dropdown>
          </el-col>
        </el-row>
      </el-header>
      <el-container>
        <el-aside width="200px">
          <Menus></Menus>
        </el-aside>
        <el-main>
          <RouterView></RouterView>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script setup>

import { RouterView } from 'vue-router';
import Menus from './components/Menus.vue';



</script>

<style scoped>

.el-header{
  background-color: #c6e2ff;
  height: 50px;
  padding-left: 0px;
}
.el-aside{
  background-color: #d9ecff;
  height: 100%;
}
.el-dropdown{
  line-height: 50px;
  color: black;
  font-weight: 800;
  font-size: 18px;
  float: right;
}
.el-main{
  padding: 0px;
  
}
</style>